﻿using System.ComponentModel;
using MugenMvvmToolkit.Annotations;

namespace MugenMvvmToolkit.Interfaces.Views
{
    /// <summary>
    ///     Represent the base interface for dialog view.
    /// </summary>
    [BaseView(Priority = 1, ViewTypeName = "System.Windows.Window")]
    public interface IWindowView : IWindowViewBase
    {
        /// <summary>
        ///     Occurred on closing window.
        /// </summary>
        event CancelEventHandler Closing;

        /// <summary>
        ///     Shows window as dialog.
        /// </summary>
        /// <returns></returns>
        bool? ShowDialog();
    }
}